package Abstract_graphics;
import java.util.Scanner;

public class rectangle extends graphics{
    static double longs;
    static double wide;
    public rectangle(double longs, double wide){
        super(longs,wide);
    }

    public static void fun(){
        System.out.println("long:"+longs+",wide"+wide);
    }

    public static void main(String[] args) {
        System.out.println("请输入要运算的两个数：");
        Scanner sc1 = new Scanner(System.in);
        longs = sc1.nextDouble();
        Scanner sc2 = new Scanner(System.in);
        wide = sc2.nextDouble();
        fun();
        rectangle ease = new rectangle(longs,wide);
    }
}
